module SchoolsHelper
  def need_icon(entry, text)
    (entry ? image_tag("tick.png") : image_tag("cross.png")) + text
  end

  def tags_selector_for(input_field, tags)
    result = ""
    tags.each do |e|
      result << "<a href=\"javascript:swap('#{input_field}','#{e}')\">#{e}</a>&nbsp;"
    end
    return result
  end
end
